package gestorcondominio

class AdminController{
	def beforeInterceptor = [action:this.&auth]
	def auth() {
		if(!session.user) {
			redirect(controller:"user", action:"login")
			return false
		}
		if(!session.user.admin){
			flash.message = "Tarea restringida a Administradores"
			redirect(controller:"cuotas", action:"list")
			return false
		}
	}
	def index = {}
}